package com.graduation.books_borrow.ret;

public class Rcode {

    public static final int REGISTER_SUCCESS = 1;
    public static final String REGISTER_SUCCESS_DESC = "注册成功";

    public static final int REGISTER_USER_PSW_NULL = 2;
    public static final String REGISTER_USER_PSW_NULL_DESC = "用户名或密码不能为空";

    public static final int REGISTER_EXCEPTION = 3;
    public static final String REGISTER_EXCEPTION_DESC = "注册异常";

    public static final int LOGIN_SUCCESS = 4;
    public static final String LOGIN_SUCCESS_DESC = "登陆成功";

    public static final int LOGIN_FAIL = 5;
    public static final String LOGIN_FAIL_DESC = "用户名或密码错误";

    public static final int QUERY_BOOKS_SUCCESS = 6;
    public static final String QUERY_BOOKS_SUCCESS_DESC = "图书查询成功";

    public static final int BOOK_BORROW_USERID_ERROR = 7;
    public static final String BOOK_BORROW_USERID_ERROR_DESC = "图书借阅失败，用户Id无效";

    public static final int BOOK_BORROW_BOOK_ID_ERROR = 8;
    public static final String BOOK_BORROW_BOOK_ID_ERROR_DESC = "图书借阅失败，图书id无效";

    public static final int BOOK_BORROW_SUCCESS = 9;
    public static final String BOOK_BORROW_SUCCESS_DESC = "图书借阅成功";

    public static final int BOOK_BORROW_FAIL = 10;
    public static final String BOOK_BORROW_FAIL_DESC = "图书借阅失败";

    public static final int BOOK_BORROW_HAS_BORROW = 11;
    public static final String BOOK_BORROW_HAS_BORROW_DESC = "图书借阅失败，该图书已借出";

    public static final int REGISTER_USER_NAME_EXIST = 12;
    public static final String REGISTER_USER_NAME_EXIST_DESC = "注册失败，该用户名已注册";

    public static final int BOOK_BORROW_OUT_THREE = 13;
    public static final String BOOK_BORROW_OUT_THREE_DESC = "图书借阅失败，已借阅超过3本";

    public static final int BOOK_RETURN_USERID_ERROR = 14;
    public static final String BOOK_RETURN_USERID_ERROR_DESC = "图书归还失败，用户Id无效";

    public static final int BOOK_RETURN_BOOK_ID_ERROR = 15;
    public static final String BOOK_RETURN_BOOK_ID_ERROR_DESC = "图书归还失败，图书id无效";

    public static final int BOOK_RETURN_BORROW_NOT_EXIST = 16;
    public static final String BOOK_RETURN_BORROW_NOT_EXIST_DESC = "图书归还失败，借阅信息不存在";

    public static final int BOOK_RETURN_HAS_RETURN = 16;
    public static final String BOOK_RETURN_HAS_RETURN_DESC = "图书归还失败，借阅信息不存在";

    public static final int BOOK_RETURN_SUCCESS = 17;
    public static final String BOOK_RETURN_SUCCESS_DESC = "图书归还成功";

    public static final int BOOK_RETURN_FAIL= 17;
    public static final String BOOK_RETURN_FAIL_DESC = "图书归还失败";
}
